<include file="Public:header" />
<script type="text/javascript" src="__PUBLIC__/js/kindeditor-all-min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/zh_CN.js"></script>
<script src="__PUBLIC__/js/PCASClass.js" type="text/javascript"></script>
<script type="text/javascript" src="__PUBLIC__/js/formValidator-4.0.1.min.js" charset="UTF-8"></script>
<script type="text/javascript" src="__PUBLIC__/js/formValidatorRegex.js" charset="UTF-8"></script>
<link rel="stylesheet" href="__PUBLIC__/css/kindeditor.css" type="text/css" />

<div class="container">
    <!-- Docs nav ================================================== -->
    <div class="page-header">
        <h4>{$titleName}</h4>
    </div>
    <div class="row">
        <div class="span12">
            <include file="Public:alert" />
                        <form id="form2" action="{:U(customer/singleedit)}" method="post">
                            <table class="table" width="33%" border="0" cellspacing="1" cellpadding="0">
                                        <tbody id="tbody_1">
                                        <tr style="display: none;">
                                            <td class="tdleft" width="15%">{:L('PRINCIPAL')}:</td>
                                            <td>
                                                <input type="hidden" id="id" name="id" value="{$vo.id}"/>
                                                <input type="hidden" id="role_type" name="role_type" value="{$tname}" />
                                                <input type="hidden" id="owner_name" value="{$Think.session.name}" /> &nbsp;&nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdleft" width="15%">{:L('CUSTOMER_NAME')}:</td>
                                            <td><input type="text" id="scorer_name" name="scorer_name" value="{$org}" readonly></td>
                                        </tr>
                                        <tr style="display: none;">
                                            <td class="tdleft" width="15%">{:L('CUSTOMER_ID')}:</td>
                                            <td><input type="text" id="customer_id" name="customer_id" value="{$vo.customer_id}" readonly></td>
                                        </tr>
                                        <tr>
                                            <td class="tdleft" width="15%">{$formName}:</td>
                                            <td><input type="text" id="score_member" name="score_member" value="{$vo.name}">&nbsp;<span style="color:red;">*(必填)</span></td>
                                        </tr>
                                        <tr>
                                            <td class="tdleft" width="15%">{:L('PARTION')}:</td>
                                            <td><input type="text" id="scorer_partion" name="scorer_partion" value="{$vo.department}">&nbsp;<span style="color:red;">*(必填)</span></td>
                                        </tr>
                                        <tr>
                                            <td class="tdleft" width="15%">{:L('CONNECTION')}:</td>
                                            <td><input type="text" id="scorer_connection" name="scorer_connection" value="{$vo.contact_phone}">&nbsp;<span style="color:red;">*(必填)</span></td>
                                        </tr>
                                        <tr>
                                            <td class="tdleft" width="15%">{:L('FAMILY_MEMBER')}:</td>
                                            <td><input type="text" id="scorer_family_member" name="scorer_family_member" value="{$vo.family}"></td>
                                        </tr>
                                        <tr>
                                            <td class="tdleft" width="15%">{:L('HOBBY')}:</td>
                                            <td><input type="text" id="scorer_hobby" name="scorer_hobby" value="{$vo.like}"></td>
                                        </tr>
                                        <tr>
                                            <td class="tdleft" width="15%">{:L('DECISION_SEX')}:</td>
                                            <td>
                                                <input type="radio" placeholder="性别"  name="scorer_decision_sex" value="0"  <if condition="$vo['sex'] eq 0"> checked </if> class="">男
                                                <input type="radio" placeholder="性别" name="scorer_decision_sex" value="1" <if condition="$vo['sex'] eq 1"> checked </if> class="">女
                                                &nbsp;&nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdleft" width="15%">{:L('DECISION_AGE')}:</td>
                                            <td><input type="text" id="scorer_decision_age" name="scorer_decision_age" value="{$vo.age}"></td>
                                        </tr>
                                        <tr>
                                            <td class="tdleft" width="15%">{:L('DECISION_BIRTHDAY')}:</td>
                                            <td><input type="text" value="{$birthday}" id="scorer_decision_birthday" style="width: 21%;" name="scorer_decision_birthday" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"></td>
                                        </tr>
                                        </tbody>
                                <tfoot>
                                <tr>
                                    <td style="text-align:left;" colspan="10">
                                        <input class="btn btn-primary" name="submit" type="submit" value="{:L('SAVE')}"/>&nbsp;&nbsp;
                                        <!--<input class="btn btn-primary" name="submit" type="submit" value="{:L('SAVE_AND_NEW')}"/>&nbsp;&nbsp;-->
                                        <input class="btn" type="button" onclick="javascript:history.go(-1)" value="{:L('RETURN')}"/>&nbsp;
                                    </td>
                                </tr>
                                </tfoot>
                            </table>
                        </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
//评价者判断
//            $("#score_member").formValidator({
//                tipID:"nameTip",
//                onShow:"<span style='color:red;'>*必填项</span>",
//                empty:false,
//                onFocus:" ",
//                onCorrect:"<span style='color:green;'>√</span>"
//            }).inputValidator({
//                min:1,max:333,
//                onshow:"<font style='color:red;'>决策者姓名不能为空！</font>",
//                onErrorMin:"决策者姓名不能为空！",
//                onErrorMax:"客户名称超出最大长度"
//            });
//            $("#score_partion").formValidator({
//                tipID:"addressTip",
//                onShow:"<span style='color:red;'>*必填项</span>",
//                empty:false,
//                onFocus:" ",
//                onCorrect:"<span style='color:green;'>√</span>"
//            }).inputValidator({
//                min:1,max:500,
//                onshow:"<font style='color:red;'>决策者所在部门不能为空！</font>",
//                onErrorMin:"决策者所在部门不能为空！",
//                onErrorMax:"决策者所在部门不能为空超出最大长度"
//            });
//            $('#score_connection').formValidator({
//                ValidatorGroup : '1',
//                onEmpty : '手机号码不能为空',
//                onShow : '',
//                onFocus : '请输入您的手机号码',
//                onCorrect : '手机号码格式正确',
//            })
//                    .regexValidator({
//                        regExp : '^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$',
//                        onError : '手机号码格式有误，请从新输入'
//                    });
//
//
//            //推荐者判断
//            $("#recommende_decision_maker").formValidator({
//                tipID:"nameTip",
//                onShow:"<span style='color:red;'>*必填项</span>",
//                empty:false,
//                onFocus:" ",
//                onCorrect:"<span style='color:green;'>√</span>"
//            }).inputValidator({
//                min:1,max:333,
//                onshow:"<font style='color:red;'>决策者姓名不能为空！</font>",
//                onErrorMin:"决策者姓名不能为空！",
//                onErrorMax:"客户名称超出最大长度"
//            });
//            $("#recommende_partion").formValidator({
//                tipID:"addressTip",
//                onShow:"<span style='color:red;'>*必填项</span>",
//                empty:false,
//                onFocus:" ",
//                onCorrect:"<span style='color:green;'>√</span>"
//            }).inputValidator({
//                min:1,max:500,
//                onshow:"<font style='color:red;'>决策者所在部门不能为空！</font>",
//                onErrorMin:"决策者所在部门不能为空！",
//                onErrorMax:"决策者所在部门不能为空超出最大长度"
//            });
//            $('#recommende_connection').formValidator({
//                ValidatorGroup : '1',
//                onEmpty : '手机号码不能为空',
//                onShow : '',
//                onFocus : '请输入您的手机号码',
//                onCorrect : '手机号码格式正确',
//            })
//                    .regexValidator({
//                        regExp : '^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$',
//                        onError : '手机号码格式有误，请从新输入'
//                    });
//
//            //使用者判断
//            $("#mesuser_decision_maker").formValidator({
//                tipID:"nameTip",
//                onShow:"<span style='color:red;'>*必填项</span>",
//                empty:false,
//                onFocus:" ",
//                onCorrect:"<span style='color:green;'>√</span>"
//            }).inputValidator({
//                min:1,max:333,
//                onshow:"<font style='color:red;'>决策者姓名不能为空！</font>",
//                onErrorMin:"决策者姓名不能为空！",
//                onErrorMax:"客户名称超出最大长度"
//            });
//            $("#mesuser_partion").formValidator({
//                tipID:"addressTip",
//                onShow:"<span style='color:red;'>*必填项</span>",
//                empty:false,
//                onFocus:" ",
//                onCorrect:"<span style='color:green;'>√</span>"
//            }).inputValidator({
//                min:1,max:500,
//                onshow:"<font style='color:red;'>决策者所在部门不能为空！</font>",
//                onErrorMin:"决策者所在部门不能为空！",
//                onErrorMax:"决策者所在部门不能为空超出最大长度"
//            });
//            $('#mesuser_connection').formValidator({
//                ValidatorGroup : '1',
//                onEmpty : '手机号码不能为空',
//                onShow : '',
//                onFocus : '请输入您的手机号码',
//                onCorrect : '手机号码格式正确',
//            })
//                    .regexValidator({
//                        regExp : '^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$',
//                        onError : '手机号码格式有误，请从新输入'
//                    });
    });
</script>
<include file="Public:footer" />
